package com.woniu.service;

import com.woniu.entity.PageResult;
import com.woniu.pojo.League;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.vo.LeagueDetailVo;
import com.woniu.vo.LeagueQueryVo;
import com.woniu.vo.LeagueSearchVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zbk
 * @since 2022-10-12
 */
public interface ILeagueService extends IService<League> {

    /**
     * 搜索 + 分页
     * @param currentPage
     * @param pageSize
     * @param leagueQueryVo
     * @return
     */
    PageResult search(Integer currentPage, Integer pageSize, LeagueQueryVo leagueQueryVo);

    /**
     * 查润所有团课名称
     * @return
     */
    List<LeagueSearchVo> queryAll();

    void addCardRelation(String leagueId, List<String> cardList);

}
